import { createApp } from "vue";
import App from "./App.vue";

// import "~/styles/element/index.scss";

import ElementPlus from "element-plus";
// import all element css, uncommented next line
import "element-plus/dist/index.css";

// or use cdn, uncomment cdn link in `index.html`

import "~/styles/index.scss";
import "uno.css";

// If you want to use ElMessage, import it.
import "element-plus/theme-chalk/src/message.scss";
// ElNotification 
import "element-plus/theme-chalk/src/notification.scss";



import VueSocketIO from 'vue-3-socket.io'
import io from 'socket.io-client';
const socketio = new VueSocketIO({
    debug: true,
    connection: io('http://127.0.0.1:5000',{ transports : ['websocket'] }),
	//http:自己的服务：端口
    // extraHeaders: {"Access-Control-Allow-Origin": '*'},
});

const app = createApp(App);
app.use(socketio);
app.use(ElementPlus);
app.mount("#app");
